package com.neuedu.elm.dao;

import com.neuedu.elm.po.Business;

import java.util.List;

public interface IBusinessDao {
    //2.查询商家列表
    //3.条件搜索商家
    public List<Business> selectBusiness(String name, String address);

    //新建商家
    public int insertBusiness(Business business);

    //删除商家
    public int deleteBusiness(int businessId);

    //商家登录
    public Business login(String name, String pwd);

    //查询商家信息
    public Business queryBusiness(int businessId);

    //修改商家信息
    public int updateBusiness(Business business);

    //修改商家密码
    public int updateBusinessPwd(int BusinessId, String newpwd);

}
